package tech.summerly.weather.util

import tech.summerly.weather.data.remote.CaiYunService
import tech.summerly.weather.data.remote.CaiYunService.SkyCon.*

fun CaiYunService.SkyCon.getBackgroundColor(): Int = when (this) {
    CLEAR_DAY -> 0xFF2979FF.toInt()
    CLEAR_NIGHT -> 0xFF8E24AA.toInt()
    PARTLY_CLOUDY_DAY -> 0xFF3F51B5.toInt()
    PARTLY_CLOUDY_NIGHT -> 0xFF4A148C.toInt()
    CLOUDY -> 0xFF7986CB.toInt()
    RAIN -> 0xFFA1887F.toInt()
    SNOW -> 0xFF78909C.toInt()
    WIND -> 0xFF0097A7.toInt()
    FOG -> 0xFF0288D1.toInt()
    UNKNOWN -> 0xFF2979FF.toInt()
}